package com.wl.es7.study.handler;

import com.baomidou.mybatisplus.extension.plugins.handler.TenantLineHandler;
import net.sf.jsqlparser.expression.Expression;
import net.sf.jsqlparser.expression.StringValue;
import net.sf.jsqlparser.schema.Column;

import java.util.List;

public class MyHandler implements TenantLineHandler {
    @Override
    public Expression getTenantId() {
        return new StringValue("朗逸");
    }

    @Override
    public String getTenantIdColumn() {
        return "name";
    }

    @Override
    public boolean ignoreTable(String tableName) {
        System.out.println("tableName " + tableName);
        return !"car".equals(tableName);
    }


}
